package com.wgchao.authodemo.domian.entity.base;

import javax.persistence.*;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-12-10 
 * @用途 
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="user_info" )
public class UserInfoDO  implements Serializable {

	private static final long serialVersionUID =  3380225211088371493L;

	/**
	 * 用户编号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "user_id" )
	private Long userId;

	/**
	 * 登录账号
	 */
   	@Column(name = "uname" )
	private String uname;

	/**
	 * 用户密码
	 */
   	@Column(name = "password" )
	private String password;

	/**
	 * 用户姓名
	 */
   	@Column(name = "user_name" )
	private String userName;

	/**
	 * 电话
	 */
   	@Column(name = "tel" )
	private String tel;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 机构编号
	 */
   	@Column(name = "agency_code" )
	private String agencyCode;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 登陆时间
	 */
   	@Column(name = "login_time" )
	private Date loginTime;

	/**
	 * 上次登录时间
	 */
   	@Column(name = "last_login_time" )
	private Date lastLoginTime;

	/**
	 * 删除标志
	 */
   	@Column(name = "delete_flag" )
	private Integer deleteFlag;

	/**
	 * 删除时间
	 */
   	@Column(name = "delete_time" )
	private Date deleteTime;

}
